<?php

namespace App\Models\Store;

use App\Models\BaseModel;

class ShopStoreWdModel extends BaseModel
{
    protected $table = 'shop_store_wd';

    protected $primaryKey = 'id';

    public $dateFormat = 'U';
    protected $dates = [
        'handled_at',
        'updated_at',
        'created_at',
    ];

    public function store()
    {
        return $this->hasOne('App\Models\Store\ShopStoreModel','store_id','store_id');
    }

    public function user()
    {
        return $this->belongsTo('DC\UserCenter\Models\UserBaseModel','user_id','member_id');
    }
}
